/**
 * Created by liuyanjun on 2017/6/28.
 */

import {
  getUser
}from '../service/getData'

import {
  GET_USERINFO
} from './mutation-types'


export default {
  async getUserInfo({
    commit,
    state
  }){
    let res = await getUser();
    commit(GET_USERINFO,res)
  }
}
